package com.huadao.cart_ccs.data.source.http;

public class ApiException extends RuntimeException {
    private int mErrorCode;
    public static final int EXCEPTION_TOKEN=1;

    public ApiException(int mErrorCode,String message) {
        super(message);
        this.mErrorCode = mErrorCode;
    }

    public  boolean isTokenExpried(){
        return mErrorCode==EXCEPTION_TOKEN;
    }
}
